package com.zbl.springdemo.bean.cycle;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class CycleA implements Cycle {
    @Resource
    private Cycle cycleB;

    @Override
    public void cycle() {
        System.out.println("CycleA");
        System.out.println("Cycle");
        cycleB.cycle();
    }
}
